import request from '@/utils/request'

export function attrTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/attr/table`,
    method: 'post',
    data: query
  })
}

export function attrLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/attr/load`,
    method: 'get',
    params: query
  })
}

export function attrSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/attr/save`,
    method: 'post',
    data: query
  })
}

export function attrDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_MALL_API}/api/mall/attr/delete`,
    method: 'post',
    data: query
  })
}
